<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Binh
 * Date: 1/3/14
 * Time: 10:36 PM
 * To change this template use File | Settings | File Templates.
 */
?>
<div class="title_head_table">
    <h2>Danh Thành Viên</h2>
    <form action= "<?php echo Uri::create('admin/search_member')?>" method="get">
        <div class="sidebar_search">
            <input type="text" name="search_input_member" class="search_input" value="search keyword" onclick="this.value=''" />
            <input type="image" name="search_submit_member" class="search_submit" src="<?php echo $img."search.png"; ?>"/>
        </div><!--Kết thúc sidebar_search-->
    </form>
</div>

<form action="<?php echo Uri::create('admin/delete_list_member');?>" method="post">
    <table id="rounded-corner" summary="DanhThanhVien">
        <thead>
        <tr>
            <th scope="col" class="rounded-company"></th>
            <th scope="col" class="rounded">Tên User</th>
            <th scope="col" class="rounded">Pass</th>
            <th scope="col" class="rounded">Ngày tham gia</th>
            <th scope="col" class="rounded">Email</th>
            <th scope="col" class="rounded-q4">Xóa</th>
        </tr>
        </thead>
        <tbody>
        <?php

        foreach($members as $member){
            ?>
            <tr>
                <td><input type="checkbox" name="check_member[]" value="<?php echo $member['USER_ID'];?>"/></td>
                <td><?php echo $member['USER_NAME']?></td>
                <td><?php echo $member['PASSWORD']?></td>
                <td><?php echo $member['JOIN_DATE']?></td>
                <td><?php echo $member['EMAIL']?></td>

                <td><div align="center"><a href="<?php echo Uri::create('admin/delete_member/').$member['USER_ID'];?>" ><img src="<?php echo $img."trash.png"; ?>" /></a></div></td>
            </tr>
        <?php
        }
        ?>

        </tbody>
    </table>

    <a href = "<?php echo Uri::create('admin/layout_member');?>" class="bt_blue"><img src="<?php echo $img."view_all.png" ?>"/></a>
    <input type="image" name="delete_list_member" class="bt_red" src="<?php echo $img."delete.png"; ?>" value="delete_list"/>

</form>